﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace 合并XPS文件
{

    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        internal static string CmdParameters { get; set; } = null;


        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (e.Args != null && e.Args.Length > 0)
            {
                var sb = new StringBuilder();
                for (int i = 0; i < e.Args.Length; i++)
                {
                    sb.Append(e.Args[i]);
                    if (i < e.Args.Length - 1)
                    {
                        sb.Append(" ");
                    }
                }

                CmdParameters = sb.ToString();
            }
        }
    }
}
